import React from 'react';
import { Modal } from 'antd';
import s from  './index.module.less';

class ViewImgModal extends React.Component {
  
    render() {
        const { show } = this.props;
        return (
            <Modal
                visible={!!show}
                centered
                maskClosable={false}
                footer={null}
                onCancel={this.props.onCancel}
                wrapClassName={s.wrapViewImgModal}
            >
                <div className={s.imgContent}>
                    <img src={show} alt="imgView" />
                </div>
            </Modal>
        );
    }
}

export default ViewImgModal